The Absolute Beginners Guide To Amos ------------------------------------- Chapter Six ----------- In this chapter I think it`s necessary to have a brief look back at all of the commands we have covered so far. I think you will be surprised at just how much you have learnt already. Below is roughly what your note book should look like, but more detailed. You have been taking notes haven`t you? Please note the following is not a program. : : A colon, used to separate commands on one line ` : Apostrophe, similar use as REM but only at the start of a line $ : denotes a string e.g. A$ F$ FRED$ GO$ CURS OFF : Turn the text cursor off CURS ON : Switch the text cursor on CLS N : Clear the screen using the colour N (0-15 default) DEC : Subtract 1 from a variable e.g. DEC A EDIT : Return to the EDITor from your program FSEL$ etc. : Call up the Amos file selector for the user to load/save a file FOR NEXT : A looping structure, executes commands in-between FOR and NEXT HIDE : HIDE the mouse pointer from view IF THEN : IF a statement is true THEN execute the following commands INC : Add 1 to a variable e.g. INC A LINE INPUT : Receive text or number INPUT from keyboard as a variable LOAD IFF : LOAD an IFF picture from disk PAPER N : The background colour of any text PRINTed onto the screen PRINT : PRINT "TEXT" PRINT variable or PRINT variable$ REM : Short for REMark, used to add comments to listings. See also ` Variable : A name holding a value that can be changed e.g. A=10 Variable$ : A name for holding a string of characters e.g. "TEXT12345£%" WAIT KEY : WAIT for the user to press any KEY before continuing If at this stage you fully understand half or more of the above then you are doing extremely well. If you think you understand less than half then re-read the previous chapters and look in your Amos manual for more info. The first version of Basic I tried to learn was on the Commodore Vic 20, remember that great machine? Anyway the Vic 20 came with a programming course on audio tape as well as a programs tape and on the audio tape was a spoken quiz to test yourself on what you should have previously learnt from the course. This really helped me to learn a lot more than just reading about it. We don`t have an audio tape with this course so we will have to make do with you reading it out to yourselves. I suppose I could of got Amos to read out the questions to you, but those commands come in a later chapter. By the way you can use your notes if you wish. So, without further ado, here is the first of our Absolute Beginners Quizzes. Q1 . What does the N in CLS N stand for? a) Nothing b) A colour number c) Node activated Q2 . What does the PAPER command effect? a) The background colour of any text printed b) The foreground colour of any text printed c) The actual colour of any text printed Q3 . What is the opposite command to HIDE? a) Seek b) Slide c) Show Q4 . What is wrong with the following line? PRINT "HELLO a) The second quote mark is missing b) The first quote shouldn`t be there c) You cannot PRINT the word HELLO Q5 . What is the WAIT KEY command waiting for the user to press? a) The Mouse b) Any key c) The Joystick Q6 . What type of variable is A$? a) A string variable b) A numerical variable c) A transitional coagulating dot matrix turbo vector variable Q7 . What does the LOAD IFF command achieve? a) Loads an IFF picture b) Erases an IFF picture c) Saves an IFF sample Q8 . If A=5 and the next line reads, A=A+7, what does A now equal? a) 5 b) 12 c) -5 Q9 . What would the value of A be after the following lines? A=1 IF A=1 THEN DEC A a) 0 b) 1 c) 2 Q10. What is wrong with the following line? PRINT "HELLO": REM just a remark here :PRINT "AMOS" a) The word AMOS won`t be printed because of the REM b) Hello will never be printed because of the REM c) The REM will be printed Mark down a, b or c for each answer and check them against the answers given in chapter seven. End of chapter six ^^^^^^^^^^^^^^^^^^